#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CBUTTONUI_BUTTONUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CBUTTONUI_BUTTONUI_H

#include "ControlUI.h"

class CButtonUI: public CControlUI
{
public:
	CButtonUI(void);
	virtual ~CButtonUI(void);
	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	bool Activate();

	void SetText(LPCTSTR pstrText);

	void SetWidth(int cxWidth);
	void SetPadding(int cx, int cy);

	void Event(TEventUI& event);
	//CStdString GetName() const;
	SIZE EstimateSize(SIZE szAvailable);
	virtual void DoPaint(HDC hDC, const RECT& rcPaint);
	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
	virtual RECT GetPos() const;
	virtual void SetPos(RECT rc);

protected:
	int m_cxWidth;
	SIZE m_szPadding;
	UINT m_uTextStyle;
	UINT m_uButtonState;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CBUTTONUI_BUTTONUI_H
